package com.tourlaid.mamagerment.util

import com.tourlaid.mamagerment.enums.TldExceptionEnum

/**
 * Created by xiaoyongge on 2017/7/20.
 */
class TldException : Exception {

    var code: String? = null

    var msg: String? = null

    constructor(msg: String, code: String) : super(msg) {
        this.msg = msg
        this.code = code
    }


    constructor(e: TldExceptionEnum) : super(e.desc) {
        this.code = e.code
        this.msg = e.desc
    }
}
